package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;

public class FileData implements Parcelable {
	private static final String TAG = "FileData";
	
	private String fileName;
	private String fileSize;
	
	public FileData() {
	}
	private FileData(Parcel in){
		this.fileName = in.readString();
		this.fileSize = in.readString();
	}
	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.fileName);
		dest.writeString(this.fileSize);
	}
	
	public static final Parcelable.Creator<FileData> CREATOR =new Parcelable.Creator<FileData>() {

		@Override
		public FileData createFromParcel(Parcel source) {
			return new FileData(source);
		}

		@Override
		public FileData[] newArray(int size) {
			return new FileData[size];
		}
	};

	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public String getFileSize() {
		return fileSize;
	}
	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}
	
	
}
